﻿using System;
using System.Windows;

namespace Game.Map.Internal
{
    class DistanceCalc
    {
        readonly Point _PointA;
        readonly Point _PointB;
        
        public DistanceCalc(Point pointA, Point pointB)
        {
            _PointA = pointA;
            _PointB = pointB;
        }
        
        public double Value
        {
            get
            {
                double dx = Math.Abs(_PointA.X - _PointB.X);
                double dy = Math.Abs(_PointA.Y - _PointB.Y);
                double result = Math.Max(dx, dy);
                return result;
            }
        }
        
    }
}
